package com.zqs.mapper;

import com.zqs.entity.Brand;
import com.zqs.entity.Category;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrandMapper {

//    @Select("select t_brand.brand,t_category.category from t_brand,t_category where t_brand.bid = t_category.bid and t_brand.bid = #{bid}")
//    List<Brand> findByBid(@Param("bid") Integer bid);
    @Select("select * from t_brand")
    List<Brand> selectAll();
//
//    @Select("select * from t_category where bid = #{bid}")
//    List<Category> selectByBid(Integer bid);
}
